package com.example.designpatternproject.observer;

/**
 * @ClassName: ObservableImpl
 * @Author: 史大拿
 * @CreateDate: 10/26/22$ 2:37 PM$
 * TODO
 */
public class ObservableImpl extends Observable<String, ObserverActivity> {

    @Override
    public void addObserver(ObserverActivity observerActivity) {
        mData.add(observerActivity);
    }

    @Override
    public void removeObserver(ObserverActivity observerActivity) {
        mData.remove(observerActivity);
    }
}
